<?php foreach ($view_data as $key): ?>
<form class="form-horizontal" id="ap_editform">
<div class="ibox float-e-margins">
    <div class="ibox-title"  style="border: none;"><h5 style="color: #00afef"><i>Edit Accounting Periods</i></h5>
    </div>
    <div class="ibox-content">
            <div class="form-group">
                <label class="col-lg-4 control-label">Business Unit</label>
                <div class="col-lg-3">
                    <input readonly name="business_unit_e" value="<?php echo $key->bu_name; ?>" type="text" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-4 control-label">Fiscal Year</label>
                <div class="col-lg-4">
                    <input readonly type="number" value="<?php echo $key->fiscal_year; ?>" name="fiscal_year_e" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-4 control-label">Name</label>
                <div class="col-lg-5">
                    <input readonly name="period_name_e" value="<?php echo $key->period_name; ?>" type="text" class="form-control">
                </div>
            </div>
            <!-- <div class="form-group" id="data_5">
                <label class="col-lg-4 control-label">Date Range</label>
                <div class="col-lg-5">
                    <div id="datepicker" class="input-daterange input-group">
                        <input type="text" value="10/05/2015" name="start" class="input-sm form-control">
                        <span class="input-group-addon">to</span>
                        <input type="text" value="10/20/2015" name="end" class="input-sm form-control">
                    </div>
                </div>
            </div> -->
            <div class="form-group" id="start-date">
                <label class="col-lg-4 control-label">Start Date</label>
                <div class="col-lg-3">
                   <div class="input-group">
                        <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                        </span>
                        <input readonly value="<?php echo $key->start_date; ?>" type="date" value="" name="opened_date_e" class="form-control">
                    </div>
                </div>
            </div>
            <div class="form-group" id="end-date">
                <label class="col-lg-4 control-label">End Date</label>
                <div class="col-lg-3">
                   <div class="input-group">
                        <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                        </span>
                        <input readonly value="<?php echo $key->end_date; ?>" name="closed_date_e" type="date" class="form-control">
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-4 control-label">Status</label>
                <div class="col-lg-3">
                    <input value="<?php echo $key->status_desc; ?>" type="text" name="status_e" class="form-control" readonly>
                </div>
            </div>
        </form>
    </div>
</div> <!-- End of iBox -->
<?php endforeach; ?>
